/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Logica;
import java.util.Date;
import java.util.Calendar;
/**
 *
 * @author Angel
 */
public class Logica {
    
    public Logica(){}
    
    public String msgConexion(boolean conexion){
        if(conexion){
            return "<p><small>Conecto a Mysql</small></p>";
        }else{
            return "<p><small><font color=red>No Conecto a Mysql..!!</font></small></p>";
        }
    }
    
    public String getFecha(){
        Date fecha = new Date();
        return "<b>Hoy es:</b> " + fecha.getDate() + " / " + (fecha.getMonth() + 1) + " / " + (fecha.getYear() + 1900);
    }
    
}
